{if($nowpage!=1 && $pages>$nowpage)}
<div id="pages">
<div style="border-top: 1px solid #eee;width: 97%;"><a href="{$next_url}">下一页</a>.<a href="{$last_url}">上一页</a><span style="margin-left: 1em;font-size: 12px;letter-spacing: 1px;">(<b>{$nowpage}</b>/{$pages})</span></div>
</div>
{elseif($nowpage == $pages && $pages != 1)}
<div id="pages">
<!--当前页面只有一页-->
<div style="border-top: 1px solid #eee;width: 97%;"><a href="{$last_url}">上一页</a><span style="margin-left: 1em;font-size: 12px;letter-spacing: 1px;">(<b>{$nowpage}</b>/{$pages})</span></div>
</div>
{elseif($nowpage ==1 && $pages!=$nowpage)}
<div id="pages">
<!--当前为第一页，总页数大于一-->
<div style="border-top: 1px solid #eee;width: 97%;"><a href="{$next_url}">下一页</a><span style="margin-left: 1em;font-size: 12px;letter-spacing: 1px;">(<b>{$nowpage}</b>/{$pages})</span></div>
</div>
{/if}